import os
import sys

script_path = os.path.abspath(__file__)
script_dir = os.path.dirname(script_path)
sys.path.append(script_dir)

import pygame
from amount import *
from other import *
from typing import Type


class Bullet(pygame.sprite.Sprite):
    """子弹"""

    sign = "Bullet-sign"

    def __init__(self, damage: Damage, speed: MSpeed, target: Type):
        super().__init__()
        self.damage = damage
        """伤害值，需转化为Lift（生命值）来输出"""
        self.speed = speed
        """速度"""
        self.target = target
        """目标类"""
        self.image: gif_frame
